Development is done in Eclipse Mars for RCP and RAP Developers. Please work through this guide to correctly set up your development environment.
Required Eclipse plugins are:
trunk
update site http://update.jamopp.org/trunkanonymous:anonymous
). Import it into your Eclipse workspace.anonymous:anonymous
).
org.somox.metrics.dsl.tests
and org.somox.metrics.tests
https://svnserver.informatik.kit.edu/i43/svn/code/SoMoX/Addons/PCM Source Statement Links Extractor/
(Credentials: anonymous:anonymous
). Import it into your Eclipse workspace.The project is built using Gradle 2.10. It can be downloaded here. Ubuntu users can use this PPA.
We use the default commands: gradle build
(or simply gradle
) to test and build, gradle test
to only run tests. Run gradle tasks
to see all available tasks.
Please import the root project through Buildship into Eclipse. Make sure to select “Specific Gradle version: 2.10”. This will import all subprojects as well:
Please execute gradle now to set up all required files. You can do so by double-clicking on the “Beagle” project in the “Gradle Tasks” view.
Parts of the documentation are written in LaTeX using LyX.
In order to render PDFs, the following steps need to be performed.
Ubuntu users can try to run the deployment install script at buildSrc/src/deploy/bash/Install Doc.sh
, which will execute all installation steps detailed below. Please note thatwhile the script offers great convenience, it was written to be used on a continuous integration server and might hence make settings that are not optimal for a private computer.
You’ll obviously first need to install LyX and LaTeX.
Download the SDQ thesis template and install it according to your LaTeX distribution.
On Ubuntu:
copy the unzipped folder’s contents to /usr/share/texmf/tex/latex/sdqthesis
. For example:
sudo cp -r Ausarbeitungs-Vorlage_SDQ_2014 /usr/share/texmf/tex/latex/sdqthesis
sudo texhash
On Windows (with MiKTeX):
C:\Users\[User]\texmf
) and add it under Roots
in the MiKTeX settings. Given [texmf]
is your local texmf folder, the contents must be copied into [texmf]\tex\latex\sdqthesis
.You may remove the files thesis.tex
and thesis.bib
as well as the subfolder sections
.
Download the KIT LaTeX templates and install them to your LaTeX distribution.
unzip the zip file’s inner zip files.
On Ubuntu:
copy the contents of KITbase/tex/latex/KIT
to /usr/share/texmf/tex/latex/KITBase
and the contents of KITbeamer/tex/latex/KIT
to /usr/share/texmf/tex/latex/KITBeamer
. For example:
sudo cp -r KITbase/tex/latex/KIT /usr/share/texmf/tex/latex/KITBase
sudo cp -r KITbeamer/tex/latex/KIT /usr/share/texmf/tex/latex/KITBeamer
sudo texhash
On Windows (with MiKTeX):
KITbase/tex/latex/KIT
and KITbeamer/tex/latex/KIT
to [texmf]\tex\latex\KIT
where [texmf]
is your local texmf folder, as explained above.Install the LyX layout files Documentation/Dependencies/sqthesis.layout
and Documentation/Dependencies/KIT-Beamer.layout
.
~/.lyx/layouts
, Windows: C:\Users\[User]\AppData\Roaming\LyX2.1\layouts
)A (small!) subset of the required LaTeX packages are:
scrbook
)inputenc
, fontenc
, etc.libertine
and newtxmath
)sourcesanspro
)beramono
)microtype
)enumitem
)breakcites
)xindy
)uarial
)If you care for the full list, look it up yourself in sdqthesis.cls
, and the KIT template .sty
files.
Most required packages can be installed by installing thetexlive-latex-base
, texlive-latex-recommended
, texlive-latex-extra
, texlive-fonts-extra
, xindy
, texlive-bibtex-extra
and texlive-lang-german
debian packages. However, uarial
is not open source and must thus be downloaded and installed in an extra step. Run these commands:
sudo apt-get install texlive-latex-base texlive-latex-recommended texlive-latex-extra texlive-fonts-extra texlive-lang-german texlive-bibtex-extra xindy
wget https://tug.org/fonts/getnonfreefonts/install-getnonfreefonts
sudo texlua install-getnonfreefonts
sudo getnonfreefonts-sys arial-urw
rm install-getnonfreefonts
On Windows, you’ll likely use MiKTeX, which will install automatically all required packages automatically. However, you need to install Perl: ActivePerl. Make sure the checkbox “Add Perl to PATH”, which appears during the installation process, is checked.
C:\Program Files (x86)\Umlet\Umlet.exe
(Windows) or /opt/Umlet/
(Linux). (If you want to put it somewhere else, you have to adapt UmletRenderTask.goovy
in the Documentation project’s buildSrc
project.) UMLet is required to build the documentation.You may need to set the language in Tools -> Settings -> Language Settings -> Language
to en
to get English spell checking.
Other parts are written in plain Markdown. The Eclipse GitHub Flavored Markdown viewer plugin for Eclipse helps writing it. (*Hint:* Don’t give the plugin your GitHub credentials. Create a personal access token and change the API URL in the plugin’s settings: https://api.github.com/?access_token=PERSONAL_ACCESS_TOKEN
)
Beagle uses Travis, a continuous integration service. It tests Pull Requests as well as all branches in the repository whenever changes occur.
You can enable Travis for your repository, too. This allows you to have automated tests for all your commits. It further generates all documentation documents for new commits. This is quite handy for pull requests, as you can simply post a link to the rendered file, making the reviewing process a whole lot easier.
To activate Travis:
repo
scope is sufficient.GH_TOKEN
. Paste the personal access token you created as value. Leave the “show in log” switch OFF!Done!